{% extends 'template/layout.html' %}

{% block title %}编辑页面{% endblock %}

{% block content %}
<form action="/user/{{ user.id }}" method="post">
    <input type="hidden" name="_method" value="put">
    <div>
        <label for="name">姓名：</label>
        <input type="text" id="name" value="{{ user.name }}" name="name" placeholder="姓名" />
    </div>

    <div>
        <label for="password">密码：</label>
        <input type="password" id="password" name="password" placeholder="密码" />
    </div>

    <div>
        <label for="age">年纪：</label>
        <input type="text" id="age" name="age" value="{{ user.age }}" placeholder="年纪" />
    </div>

    <div>
        <input type="submit" value="提交">
    </div>
</form>
{% endblock %}